desired_caps = dict()
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '5.1'
desired_caps['deviceName'] = '192.168.56.101:5555'
desired_caps['appPackage'] = 'com.android.settings'
desired_caps['appActivity'] = '.Settings'

self.driver = webdriver.Remote('http://192.168.41.103:4723/wd/hub', desired_caps)


self.driver.find_element_by_id("com.android.settings:id/search").click()
self.driver.find_element_by_class_name("android.widget.EditText").send_keys("你好")
self.driver.find_element_by_xpath("//*[@content-desc='收起']").click()


self.driver.quit()
